<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2022/5/16
  Time: 14:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>人员通知</title>
</head>
<body>
<div>
    <h1 class="text-center">事故人员通知</h1>
    <table class="table table-bordered">
        <thead>
        <tr>
            <th>角色名称</th>
            <th>单位/职称</th>
            <th>姓名</th>
            <th>办公电话</th>
            <th>手机</th>
            <th>住宅电话</th>
            <th>其他电话</th>
            <th>备注</th>
        </tr>
        </thead>
        <tbody id="table">


        </tbody>

    </table>短信内容：
    <textarea></textarea>
    <div class="text-center">
        <a id="save" class="btn btn-info" href="javascript:" role="button">发送</a>
        <a id="qiuxiao" class="btn btn-info" href="javascript:" role="button">关闭</a></div>
</div>
</body>
<script type="text/javascript">
    $("#save").click(function () {
        alert("发送成功")
        window.location.href="troubleRemoval"
    })
    $("#qiuxiao").click(function () {
        window.location.href="troubleRemoval"
    })

$(function () {
    $.ajax({
        url:"/eme/querypersonnel",
        method:"get",
        dataType:"json",
        success:function (data) {
            for (var i=0;i<data.length;i++){
                var text="<tr><td>"+data[i].name+"</td> <td>"+data[i].position+"</td> <td>"+data[i].user_name+"</td> <td>"+data[i].phonenum+"</td> <td>"+data[i].telephone+"</td> <td>"+data[i].otherphone+"</td> <td>"+data[i].officephone+"</td> <td><input type='text'value='"+data[i].remarks+"'></td></tr>"
                $("#table").append(text)



            }
        }


    })
})


</script>
</html>
